﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data.Linq.Mapping;

namespace Argos.Data.Model
{
	[Serializable]
	public class TargetGroup : ItemBase
	{

		#region public MonitoringHost Host { get; set; }

		private static string HostPropertyName = "Host";

		[NonSerialized]
		private MonitoringHost _Host;

		public MonitoringHost Host
		{
			get { return _Host; }
			set
			{
				if (!object.Equals(this.Host, value))
				{
					_Host = value;
					this.OnPropertyChanged(new PropertyChangedEventArgs(HostPropertyName));
				}
			}
		}

		#endregion

		#region public string Name { ge; set; }

		private static string NamePropertyName = "Name";

		public string Name
		{
			get { return this.GetProperty<string>(NamePropertyName); }
			set { this.SetProperty(NamePropertyName, value); }
		}

		#endregion

	}
}
